package com.ybwh.springboot2.okadmin.sys.model.vo.login;

import com.alibaba.fastjson.JSON;
import com.ybwh.springboot2.okadmin.sys.model.vo.common.Captcha;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class LoginParam extends Captcha {
    @NotBlank(message = "账号不能为空")
    @ApiModelProperty(value = "账号")
    private String username;
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码")
    private String password;
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
